<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue06</title>
    <script src="./vue.min.js"></script>
</head>
<body>
    <div id="app">
        <liu v-for="item in items" v-bind:item="item"></liu>
    </div>
</body>

    
<script>
    Vue.component("liu",{
        props:['item'],
        template:'<li>{{item}}</li>'
    });
    var vm = new Vue({
        el:'#app',
        data:{
            items:['Java','HTML','Vue']
        }
    })
</script>
</html>